<?php
require 'init.php';

$str_entry_ids = $argv[1];
$entry_ids = explode(",", $str_entry_ids);
$like_db = new Core_Model_DbTable_Likes();

$like_details = $like_db->getDetail($entry_ids);
$user_actions_db = new Core_Model_DbTable_UserActions();
$user_actions_db->insertActions($like_details, LIKE);

$total_actions_db = new Core_Model_DbTable_TotalActions();
$total_actions_db->insertActions($like_details, LIKE);

$buffer_like_db = new Core_Model_DbTable_BufferLikes();
$buffer_like_db->deleteBatch($entry_ids);
?>
